#ifndef __LINKQUEUE_H_
#define __LINKQUEUE_H_

#include "DoubleLinkList.h"

struct LinkQueue
{
    DLlist queue;
    ElementType FrontElement;//队列头，用于弹队列
};
typedef struct LinkQueue LQueue;

int LQInit(struct LinkQueue *lq);
void LQPush(struct LinkQueue *lq,ElementType element);
//void LQTravel(struct LinkQueue *lq);
int LQIsEmpty(struct LinkQueue *lq);
ElementType* LQPop(struct LinkQueue *lq);
void LQFree(struct LinkQueue *lq);

struct Node *LQGetFront(struct LinkQueue *lq);

int GetQueueLen(LQueue *lq);

#endif